package com.srlg.liteflow.config;

import com.yomahub.liteflow.flow.element.Node;
import com.yomahub.liteflow.lifecycle.PostProcessNodeBuildLifeCycle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestNodeLifeCycle implements PostProcessNodeBuildLifeCycle {
    @Override
    public void postProcessBeforeNodeBuild(Node node) {
        //do something
        log.info("TestNodeLifeCycle postProcessBeforeNodeBuild");
    }

    @Override
    public void postProcessAfterNodeBuild(Node node) {
        //do something
        log.info("TestNodeLifeCycle postProcessAfterNodeBuild");
    }
}
